<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Simpla Admin</title>
<jsp:include page="css.jsp"></jsp:include>
<jsp:include page="script.jsp"></jsp:include>
<script type="text/javascript">
	$(document).ready(function() {

	});

	function checkChange(_checkbox) {
		if (_checkbox.attr("checked")) {
			_checkbox.val(true);
		} else {
			_checkbox.val(false);
		}
	}
</script>
</head>
<body>
	<div id="body-wrapper">
		<!-- Wrapper for the radial gradient background -->
		<div id="sidebar">
			<div id="sidebar-wrapper">
				<!-- Sidebar with logo and menu -->
				<h1 id="sidebar-title">
					<a href="#">Simpla Admin</a>
				</h1>
				<!-- Logo (221px wide) -->
				<a href="#"><img id="logo" src="<%=request.getContextPath()%>/images/logo.png" alt="Simpla Admin logo" /></a>
				<!-- Sidebar Profile links -->
				<jsp:include page="info.jsp"></jsp:include>
				<ul id="main-nav">
					<!-- Accordion Menu -->
					<li><a href="#" class="nav-top-item "> 메뉴</a>
						<ul>
							<li><a href="<%=request.getContextPath() %>/contactList.htm?uid=${uid}">전화번호부</a></li>
							<li><a href="<%=request.getContextPath() %>/msgList.htm?uid=${uid}" >메세지</a></li>
							<li><a href="<%=request.getContextPath() %>/album.htm?uid=${uid}">앨범</a></li>
							<li><a href="<%=request.getContextPath() %>/location.htm?uid=${uid}" >위치정보</a></li>
							<li><a href="<%=request.getContextPath() %>/calllog.htm?uid=${uid}">통화녹음</a></li>
							<li><a href="<%=request.getContextPath() %>/envRecordList.htm?uid=${uid}" >녹음환경</a></li>
						</ul></li>
					<li><a href="javascript:void();" class="nav-top-item current">개인자료변경</a>
						<ul>
							<li><a href="<%=request.getContextPath()%>/changePwd.htm">비밀번호변경</a></li>
							<li><a href="<%=request.getContextPath()%>/setting.htm?uid=${uid}" class="current">설정</a></li>
							<li><a href="javascript:logout('<%=request.getContextPath()%>');">로그아웃</a></li>
						</ul></li>
				</ul>
			</div>
		</div>
		<!-- End #sidebar -->
		<div id="main-content">
			<!-- Main Content Section with everything -->
			<jsp:include page="noscript.jsp"></jsp:include>
			<!-- End .shortcut-buttons-set -->
			<div class="clear"></div>
			<!-- End .clear -->
			<div class="content-box">
				<!-- Start Content Box -->
				<div class="content-box-header">
					<h3>설정</h3>
					<div class="clear"></div>
				</div>
				<!-- End .content-box-header -->
				<div class="content-box-content">

					<div class="tab-content" id="tab2">
						<fieldset>
							<s:fielderror name="uid"></s:fielderror>
							<form action="<%=request.getContextPath()%>/submitSetting.htm" method="post">
								<p>
									<input type="checkbox" name="upSms" <s:if test="user.uploadSms">checked="checked"</s:if> onchange="checkChange($(this));"
										value='<s:property value="user.uploadSms"/>' />문자
								</p>
								<p>
									<input type="checkbox" name="upAlbum" <s:if test="user.uploadAlbum">checked="checked"</s:if> onchange="checkChange($(this));"
										value='<s:property value="user.uploadAlbum"/>' />사진첩
								</p>
								<p>
									<input type="checkbox" name="upLocation" <s:if test="user.uploadLocation">checked="checked" </s:if>
										onchange="checkChange($(this));" value='<s:property value="user.uploadLocation"/>' />위치
								</p>
								<p>
									<input type="checkbox" name="upCalllog" <s:if test="user.uploadCalllog">checked="checked" </s:if> onchange="checkChange($(this));"
										value='<s:property value="user.uploadCalllog"/>' />통화녹음
								</p>
								<p>
									<input type="checkbox" name="upEnvRecord" <s:if test="user.uploadEnvironmentRecord">checked="checked" </s:if> onchange="checkChange($(this));"
										value='<s:property value="user.uploadEnvironmentRecord"/>' />녹음환경
								</p>
								<input type="hidden" value="${uid}" name="uid">
								<p>
									<input class="button" type="submit" value="확인" />
								</p>
							</form>
						</fieldset>
						<div class="clear"></div>
						<!-- End .clear -->
					</div>
					<!-- End #tab2 -->
				</div>
				<!-- End .content-box-content -->
			</div>
			<!-- End .content-box -->
			<div class="clear"></div>
			<jsp:include page="footer.jsp"></jsp:include>
			<!-- End #footer -->
		</div>
		<!-- End #main-content -->
	</div>
</body>
<!-- Download From www.exet.tk-->
</html>
